package com.sskj.b70.m.bean;

import com.google.gson.annotations.SerializedName;
import com.sskj.b70.R;
import com.sskj.b70.common.App;
import com.sskj.b70.utils.NumberUtil;

public class FabiListBean {

    /**
     * account : 3841114
     * order_no : 15302613577314929539
     * realname : 郭*
     * trans_num : 100.0000
     * deals_num : 0.0000
     * price : 10.00
     * minPrice : 10.00
     * maxPrice : 1000.00
     * pay_wx : 1
     * pay_alipay : 0
     * pay_backcard : 0
     * add_time : 1530261357
     * amount : 100.0000
     * quota : 10.00-1000.00
     * cd_num : 0
     * rate : 0.0000
     */
    private String id;  // 用户id,用于判断用户是否是购买自己单

    public String getStockUserId() {
        return stockUserId;
    }

    public void setStockUserId(String stockUserId) {
        this.stockUserId = stockUserId;
    }

    private String stockUserId;

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    private String account;
    @SerializedName(value = "order_no", alternate = {"entrustNo"})
    private String order_no;
    @SerializedName(value = "realname", alternate = {"username"})  // 用户名
    private String realname;

    private double price;
    private double minPrice;
    private double maxPrice;
    private String pay_wx;
    private String pay_alipay;
    private String pay_backcard;
    private String add_time;
    private String amount;
    private String quota;

    private String cd_num;
    private String rate;
    private double transNum;  // 剩余数量
    private double dealsNum;  // 委托数量

    public String getPayType() {
        return payType;
    }

    public void setPayType(String payType) {
        this.payType = payType;
    }

    private String payType;  // 支付方式

    public double getTransNum() {
        return transNum;
    }

    public void setTransNum(double transNum) {
        this.transNum = transNum;
    }

    public double getDealsNum() {
        return dealsNum;
    }

    public void setDealsNum(double dealsNum) {
        this.dealsNum = dealsNum;
    }

    public String getLimitNum() {
        return App.INSTANCE.getString(R.string.strFabiListBean4) + NumberUtil.keepMax2(minPrice+"") + "-￥" + NumberUtil.keepMax2(maxPrice+"");
    }

    public String getAccount() {
        return account;
    }

    public void setAccount(String account) {
        this.account = account;
    }

    public String getOrder_no() {
        return order_no;
    }

    public void setOrder_no(String order_no) {
        this.order_no = order_no;
    }

    public String getRealname() {
        return realname;
    }

    public void setRealname(String realname) {
        this.realname = realname;
    }

    public String getPrice() {
        return "￥" + NumberUtil.keepNoZoreMax2(price+"");
    }

    public double getOriginPrice() {
        return price;
    }

    public void setPrice(double price) {
        this.price = price;
    }

    public double getMinPrice() {
        return minPrice;
    }

    public void setMinPrice(double minPrice) {
        this.minPrice = minPrice;
    }

    public double getMaxPrice() {
        return maxPrice;
    }

    public void setMaxPrice(double maxPrice) {
        this.maxPrice = maxPrice;
    }

    public String getPay_wx() {
        return pay_wx;
    }

    public void setPay_wx(String pay_wx) {
        this.pay_wx = pay_wx;
    }

    public String getPay_alipay() {
        return pay_alipay;
    }

    public void setPay_alipay(String pay_alipay) {
        this.pay_alipay = pay_alipay;
    }

    public String getPay_backcard() {
        return pay_backcard;
    }

    public void setPay_backcard(String pay_backcard) {
        this.pay_backcard = pay_backcard;
    }

    public String getAdd_time() {
        return add_time;
    }

    public void setAdd_time(String add_time) {
        this.add_time = add_time;
    }

    public String getAmount() {
        return App.INSTANCE.getString(R.string.strFabiListBean10) + amount + " USDT";
    }

    public String getOriginAmount() {
        return amount.replace(",", "");
    }

    public void setAmount(String amount) {
        this.amount = amount;
    }

    public String getQuota() {
        return quota;
    }

    public void setQuota(String quota) {
        this.quota = quota;
    }

    public String getCd_num() {
        return cd_num;
    }

    public void setCd_num(String cd_num) {
        this.cd_num = cd_num;
    }

    public String getRate() {
        return NumberUtil.keepNoZoreMax4(rate) + "%";
    }

    public void setRate(String rate) {
        this.rate = rate;
    }
}
